home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in.3</name>
- <id>-1</id>
- <cardCount>12</cardCount>
- <cardID>3853</cardID>
- <listID>4555</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on openstack
- set userlevel to 5
- hide menubar
- get short name of stack
- put it into card field "stkname"
- wait 2 seconds
- go to card "ChptLstCrd"
- end openstack
-
- on domenu
- global ptype
- put the param of 1 into ptype
- if ptype contains "paste" then
- if ptype is "paste card" then
- get the short name of the target
- if it is "Add topics" or it is "Contents" or it is "Insert" then
- pass domenu
- else -- pasting but not card
- beep 1
- put "Make menus first, THEN copy text/graphics, not vice versa!"
- answer "You are trying to paste a card!..." with "OK"
- answer "Only Summarizer may paste cards!" with "OK"
- put empty into msg
- hide msg
- exit domenu
- end if
- end if
- answer "About to" && ptype && "from clipboard" with "Cancel" or "OK"
- if it is "Cancel" then exit domenu
- end if
- if ptype contains "cut" or ptype contains "copy" then
- if ptype is "cut picture" or ptype is "copy picture" then
- put "Make menus first, THEN copy text/graphics, not vice versa!"
- answer "Have you made menus for this graphic yet?" ¬
- with "No" or "Yes"
- if it is "No" then
- hide msg
- exit domenu
- end if
- end if
- if ptype is "cut " then
- beep 1
- answer "There must be graphics to cut!" with "OK"
- exit domenu
- end if
- end if
- hide msg
- pass domenu
- end domenu
-
- on MakePage
- put empty into NwCrd
- put field "HeaderFld" into StrtCrdHeader
- put short name of next card into RCard
- put short name of this card into StrtCrd
- set lockscreen to "true"
- if RCard is "@" then
- domenu "new card"
- set name of this card to "@"
- if StrtCrd is "@" then
- put StrtCrdHeader into field "HeaderFld"
- else
- put "…" && StrtCrdHeader && "Cont." into field "HeaderFld"
- end if
- put "true" into NwCrd
- else
- put "false" into NwCrd
- end if
- domenu "new button"
- set name of button "new button" to "NxtPg"
- set showname of button "NxtPg" to false
- set rect of button "NxtPg" to 460, 0, 480, 17
- set icon of button "NxtPg" to "sml Next Arrow"
- set loc of button "NxtPg" to 460,8
- set style of button "NxtPg" to opaque
- set script of button "NxtPg" to "On mouseup" & return & ¬
- "go to next card" & return & ¬
- "if the number of card fields is 1 then" & return & ¬
- "get rect of card field" && quote & "txtfld" & quote & return & ¬
- "delete item 4 of it" & return & "delete item 3 of it" & return & ¬
- "click at it" & return & ¬
- "end if" & return & "end mouseup"
- if not NwCrd then
- domenu "new card"
- set name of this card to "@"
- if StrtCrd is "@" then
- put StrtCrdHeader into field "HeaderFld"
- else
- put "…" && StrtCrdHeader && "Cont." into field "HeaderFld"
- end if
- end if
- domenu "new button"
- set name of button "new button" to "PrvPg"
- set showname of button "PrvPg" to false
- set rect of button "PrvPg" to 481, 0, 501, 17
- set icon of button "PrvPg" to "sml Prev Arrow"
- set loc of button "PrvPg" to 481,8
- set style of button "PrvPg" to opaque
- set script of button "PrvPg" to "On mouseup" & return & ¬
- "go to prev card" & return & ¬
- "if the number of card fields is 1 then" & return & ¬
- "get rect of card field" && quote & "txtfld" & quote & return & ¬
- "delete item 4 of it" & return & "delete item 3 of it" & return & ¬
- "click at it" & return & ¬
- "end if" & return &"end mouseup"
- choose browse tool
- end MakePage
-
- on MakeField
- global WindType
- domenu "New field"
- set name of card field "" to "TxtFld"
- set rect of card field "TxtFld" to 19,18,512,342
- if WindType is "Scroll"
- then set Style of card field "TxtFld" to Scrolling
- if WindType is "Reg Text"
- then set Style of card field "Txtfld" to transparent
- set textFont of card field "TxtFld" to geneva
- set TextSize of card field "Txtfld" to 9
- set